/**
 * @author zack
 * @create 2019-08-02-9:21
 */
public class Test2_11_8 {
    static class A {
        int x = 10;
        static int y = 10;
        static String x1 = "woaini";
        String x2 = "woaini";
    }

    public static void main(String[] args) {
        A a0 = new A();
        a0.x=100;
        A a1 = new A();
        System.out.println("int的比较:" + (a0.x == a1.x));
        System.out.println("static int的比较:" + (a0.y == a1.y));
        System.out.println("static String的比较" + (a0.x1 == a1.x1));
        System.out.println(" String的比较" + (a0.x2 == a1.x2));
        B b0 = new B();
        b0.x=100;
        B b1 = new B();
        System.out.println("b的比较" + (b0.x == b1.x));
        System.out.println("b的比较" + (b0.x2 == b1.x2));
    }

}

class B {
    int x = 10;
    String x2 = "woaini";
}
